﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPages/Core.Master"
    CodeBehind="AssociationsBankAccounts.aspx.cs" Inherits="Pap.Web.Modules.Loan.Views.AssociationsBankAccounts"
    meta:resourcekey="PageResource1" %>

<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <ext:Store runat="server" ID="storeCommitteesBalances" AutoLoad="True" IDMode="Legacy"
        meta:resourcekey="storeCommitteesBalancesResource1" SerializationMode="Simple">
        <Reader>
            <ext:JsonReader>
                <Fields>
                    <ext:RecordField Name="CommitteeID" />
                    <ext:RecordField Name="CommitteeName" />
                    <ext:RecordField Name="ProjectName" />
                    <ext:RecordField Name="Balance" />
                    <ext:RecordField Name="Deposit" />
                </Fields>
            </ext:JsonReader>
        </Reader>
        <SortInfo Direction="ASC"></SortInfo>
    </ext:Store>
    <ext:FitLayout runat="server" IDMode="Legacy" meta:resourcekey="FitLayoutResource1">
        <ext:Panel runat="server">
            <Body>
                <ext:FitLayout runat="server">
                    <ext:GridPanel runat="server" ID="gridCommitteesBlances" StoreID="storeCommitteesBalances"
                        Title="Associations Blances" meta:resourcekey="gridCommitteesBlancesResource1"
                        Frame="true" AutoExpandColumn="CommitteeName" StripeRows="true">
                        <ColumnModel>
                            <Columns>
                                <ext:Column Width="30" DataIndex="5" Align="Center">
                                    <Commands>
                                        <ext:ImageCommand Icon="Magnifier" CommandName="ViewDeposites">
                                            <ToolTip Text="<%$Resources:TipViewDeposites %>" />
                                        </ext:ImageCommand>
                                    </Commands>
                                </ext:Column>
                                <ext:Column DataIndex="CommitteeName" Header="<%$Resources:HeaderCommitteeName %>" />
                                <ext:Column DataIndex="ProjectName" Header="<%$Resources:HeaderProjectName %>" />
                                <ext:Column DataIndex="Balance" Header="<%$Resources:HeaderBalance %>" />
                                <ext:Column DataIndex="Deposit" Header="<%$Resources:HeaderUnionDeposit %>" />
                            </Columns>
                        </ColumnModel>
                        <AjaxEvents>
                            <Command OnEvent="gridCommitteesBlances_Command">
                                <ExtraParams>
                                    <ext:Parameter Name="CommandName" Value="command" Mode="Raw" Encode="False" />
                                    <ext:Parameter Name="CommitteeID" Value="record.data.CommitteeID" Mode="Raw" Encode="False" />
                                </ExtraParams>
                                <EventMask ShowMask="true" />
                            </Command>
                        </AjaxEvents>
                        <SelectionModel>
                            <ext:RowSelectionModel ID="RowSelectionModel1" runat="server"></ext:RowSelectionModel>
                        </SelectionModel>
                        <BottomBar>
                            <ext:PagingToolbar ID="pagingBar" runat="server" StoreID="storeCommitteesBalances"
                                PageSize="15" DisplayInfo="True" IDMode="Static" meta:resourcekey="pagingBarResource1">
                            </ext:PagingToolbar>
                        </BottomBar>
                    </ext:GridPanel>
                </ext:FitLayout>
            </Body>
            <BottomBar>
                <ext:StatusBar runat="server">
                    <Items>
                        <ext:Button runat="server" IDMode="Static" ID="btnBack" Text="<%$ Resources:BackButton %>"
                            Icon="ArrowUndo">
                            <AjaxEvents>
                                <Click OnEvent="btnBack_Clicked" />
                            </AjaxEvents>
                        </ext:Button>
                    </Items>
                </ext:StatusBar>
            </BottomBar>
        </ext:Panel>
    </ext:FitLayout>
</asp:Content>
